package test.cn.qlin.orm.bean;

import java.util.List;

import cn.qlin.mvc.orm.annotation.Bean;
import cn.qlin.mvc.orm.annotation.Id;
import cn.qlin.mvc.orm.annotation.OneTOMany;
import cn.qlin.mvc.orm.annotation.Table;
import cn.qlin.mvc.orm.annotation.TableCol;

@Bean
@Table("site")
public class Site {
	@Id(name="id",tactics="auto")
	private int id;
	@TableCol("name")
	private String name;
	@TableCol("urlid")
	private Url url;
	@OneTOMany(lazy=true,col="siteid")
	private List<Url> urls;
	

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Url getUrl() {
		return url;
	}
	public void setUrl(Url url) {
		this.url = url;
	}
	public List<Url> getUrls() {
		return urls;
	}
	public void setUrls(List<Url> urls) {
		this.urls = urls;
	}
}